package com.nq.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nq.pojo.StFundApplyDetail;
import com.nq.pojo.vo.StFundApplyDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 基金购买详情
 * @author lr
 * @date 2020/09/11
 */
@Mapper
@Repository
public interface StFundApplyDetailMapper extends BaseMapper<StFundApplyDetail>   {


    List<StFundApplyDetailVo> queryFundApplyDetails(@Param("userId") Integer userId);

    String getPurchaseAmount(@Param("orderNumber") String orderNumber);

    List<StFundApplyDetail> queryEligibleFundRedemption();

    Integer queryUserBuyFundAmount(@Param("userId") Integer userId);

    List<StFundApplyDetailVo> queryAdminFundApplyList(@Param("userId") Integer userId, @Param("userPhone") String userPhone,
                                                      @Param("agentId") Integer agentId, @Param("orderNumber") String orderNumber,
                                                      @Param("tradeType") Integer tradeType,@Param("fundCode") String fundCode);

}

